Skip to content

Conversation

@ZuseZ4
Copy link
Member

@ZuseZ4 ZuseZ4 commented Nov 12, 2025

Based on your feedback, I started to provide a nice error message for a lack of lto=fat, instead of us forcing it.

In a next step, we should replace RUSTFLAGS="-Zautodiff=Enable" with another Cargo.toml setting, as discussed here: #147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

@bjorn3

@rustbot
Copy link
Collaborator

rustbot commented Nov 12, 2025

r? @madsmtm

rustbot has assigned @madsmtm.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 12, 2025
@rustbot

This comment has been minimized.

@ZuseZ4 ZuseZ4 changed the title provide an error if an autodiff user does not set in their Cargo.toml provide an error if an autodiff user does not enable lto=fat in their Cargo.toml Nov 12, 2025
@ZuseZ4 ZuseZ4 changed the title provide an error if an autodiff user does not enable lto=fat in their Cargo.toml Error if an autodiff user does not set lto=fat Nov 12, 2025
@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 12, 2025

r? @bjorn3

@rustbot
Copy link
Collaborator

rustbot commented Nov 12, 2025

Failed to set assignee to bjorn: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot assigned bjorn3 and unassigned madsmtm Nov 12, 2025
@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from b097bb6 to 370542e Compare November 12, 2025 03:50
@rustbot
Copy link
Collaborator

rustbot commented Nov 12, 2025

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from 370542e to 9b84ba2 Compare November 12, 2025 03:53
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from 9b84ba2 to b07b6fa Compare November 12, 2025 04:01
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from b07b6fa to 1f700b6 Compare November 12, 2025 04:12
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from 1f700b6 to c8bae8c Compare November 12, 2025 04:44
@rustbot
Copy link
Collaborator

rustbot commented Nov 16, 2025

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rust-log-analyzer

This comment has been minimized.

@bjorn3
Copy link
Member

bjorn3 commented Nov 16, 2025

The first two commits LGTM.

@rustbot
Copy link
Collaborator

rustbot commented Nov 16, 2025

This PR changes how LLVM is built. Consider updating src/bootstrap/download-ci-llvm-stamp.

@rustbot rustbot added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Nov 16, 2025
@rust-log-analyzer

This comment has been minimized.

@ZuseZ4 ZuseZ4 force-pushed the autodiff-lto-error branch from 7080aed to c8bae8c Compare November 16, 2025 22:30
@ZuseZ4 ZuseZ4 added the F-autodiff `#![feature(autodiff)]` label Nov 16, 2025
@ZuseZ4
Copy link
Member Author

ZuseZ4 commented Nov 16, 2025

Thanks, I'll leave the newer commits to another PR.

@bors r=bjorn3 rollup

@bors
Copy link
Collaborator

bors commented Nov 16, 2025

📌 Commit c8bae8c has been approved by bjorn3

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 16, 2025
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

`@bjorn3`
jhpratt added a commit to jhpratt/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

``@bjorn3``
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

```@bjorn3```
bors added a commit that referenced this pull request Nov 17, 2025
Rollup of 6 pull requests

Successful merges:

 - #147760 ([Debugger Visualizers] Unify `*-gnu` and `*-msvc` enum output)
 - #148505 (add larger test for `proc_macro` `FromStr` implementations)
 - #148855 (Error if an autodiff user does not set lto=fat)
 - #148958 (Run codegen tests on a 32-bit target in PR CI)
 - #149004 (compiletest: Avoid race condition in file deletion)
 - #149008 (triagebot: remove jsha from notifications for rustdoc HTML)

r? `@ghost`
`@rustbot` modify labels: rollup
JaclynCodes added a commit to JaclynCodes/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

````@bjorn3````
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

`````@bjorn3`````
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 17, 2025
Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: rust-lang#147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

``````@bjorn3``````
bors added a commit that referenced this pull request Nov 17, 2025
Rollup of 11 pull requests

Successful merges:

 - #148505 (add larger test for `proc_macro` `FromStr` implementations)
 - #148752 (Constify `ManuallyDrop::take`)
 - #148757 (Constify `mem::take`)
 - #148855 (Error if an autodiff user does not set lto=fat)
 - #148912 (add note to `lines` docs about empty str behavior)
 - #148958 (Run codegen tests on a 32-bit target in PR CI)
 - #148994 (Abi compatibility test cleanup)
 - #148999 (Tweak Motor OS linker preset, fix `remote-test-server` for Motor OS)
 - #149004 (compiletest: Avoid race condition in file deletion)
 - #149008 (triagebot: remove jsha from notifications for rustdoc HTML)
 - #149010 (compiletest: Remove the "wasm32-bare" alias for `wasm32-unknown-unknown`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit e34ef24 into rust-lang:main Nov 17, 2025
22 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Nov 17, 2025
rust-timer added a commit that referenced this pull request Nov 17, 2025
Rollup merge of #148855 - ZuseZ4:autodiff-lto-error, r=bjorn3

Error if an autodiff user does not set lto=fat

Based on your feedback, I started to provide a nice error message for a lack of `lto=fat`, instead of us forcing it.

In a next step, we should replace  `RUSTFLAGS="-Zautodiff=Enable"` with another Cargo.toml setting, as discussed here: #147487 (comment)

As another improvement, we should also figure out why rlib builds do not properly obey the fat=lto setting.

```````@bjorn3```````
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Nov 17, 2025
Rollup of 11 pull requests

Successful merges:

 - rust-lang/rust#148505 (add larger test for `proc_macro` `FromStr` implementations)
 - rust-lang/rust#148752 (Constify `ManuallyDrop::take`)
 - rust-lang/rust#148757 (Constify `mem::take`)
 - rust-lang/rust#148855 (Error if an autodiff user does not set lto=fat)
 - rust-lang/rust#148912 (add note to `lines` docs about empty str behavior)
 - rust-lang/rust#148958 (Run codegen tests on a 32-bit target in PR CI)
 - rust-lang/rust#148994 (Abi compatibility test cleanup)
 - rust-lang/rust#148999 (Tweak Motor OS linker preset, fix `remote-test-server` for Motor OS)
 - rust-lang/rust#149004 (compiletest: Avoid race condition in file deletion)
 - rust-lang/rust#149008 (triagebot: remove jsha from notifications for rustdoc HTML)
 - rust-lang/rust#149010 (compiletest: Remove the "wasm32-bare" alias for `wasm32-unknown-unknown`)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. F-autodiff `#![feature(autodiff)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants